<include file="Public:header"/>
<div class="tabs_header">
<ul>
<li class="active"><if condition="empty($_GET['what']) || $_GET['what'] eq 'in'">
				我收到的纸条 
			<else />	
				<a href="{YICMS::U('User/Index/msg?what=in')}">我收到的纸条</a> 
			</if></li>
			<li><if condition="$_GET['what'] eq 'out'">
				发出去的纸条 
			<else />	
				<a href="{YICMS::U('User/Index/msg?what=out')}">发出去的纸条</a> 
			</if></li><li>
			<if condition="$_GET['what'] eq 'new'">
				写新纸条 
			<else />	
				<a href="{YICMS::U('User/Index/msg?what=new')}">写新纸条</a> 
			</if></li>
</ul>
</div>
	<table width="100%" height="auto" border="0" cellpadding="0" cellspacing="0" align="center" >
		<switch name="Think.get.what" >
			<case value="out">
					 <tr>
						<td width="15%" align="center" >接收人</td>
						<td width="15%" align="center" >时间</td>
						<td width="70%" align="center" >内容</td>
					 </tr>
				<volist name="msg" id="vo">
					 <tr>
						<td>
							<span class="user"><a href="{YICMS::U('User/Index/index?uid='.$vo['to_uid'])}">{YICMS:$vo.to_uname}</a></span>
						</td>
						<td>
							<span class="time">{YICMS:$vo.time|switchtime=###}</span>
						</td>
						<td>
							{YICMS:$vo.msg}
						</td>
					 </tr>
				</volist>	
				<tr>
					<td colspan="3" align="center">{YICMS:$page}</td>
				</tr>
			</case>
			<case value="new">
				<form action="{YICMS::U('User/Index/checkMsg')}" method="post">
					<tr height="40px">
						<td widht="20%" align="center"><label for="to_uname">写给：</label></td>
						<td width="80%" align="center"><input id="to_uname" name="to_uname" autocomplete="off" /> </td>
					</tr>
					<tr>
						<td><label for="msg">正文：</label></td>
						<td><textarea id="msg" name="msg" style="height:80px;width:400px"></textarea></td>
					</tr>
					<tr>
						<td colspan="2"><input name="commit" type="submit" value="发送" style="padding:3px;"/></td>
						
					</tr>
				</form>
			</case>
			<default />
				<tr>
					<td width="15%" align="center" >发送人</td>
					<td width="15%" align="center" >时间</td>
					<td width="70%" align="center" >内容</td>
				 </tr>
				<volist name="msg" id="vo">
					<tr>
						<td>
							<span class="user"><a href="{YICMS::U('User/Index/index?uid='.$vo['from_uid'])}">{YICMS:$vo.from_uname}</a></span> 
						</td>
						<td>
							<span class="time">{YICMS:$vo.time|switchtime=###}</span>
						</td>
						<td >
							{YICMS:$vo.msg}
					</td>
					 </tr>
				</volist>
				<tr>
					<td colspan="3" align="center">{YICMS:$page}</td>
				</tr>
		</switch>
		</table>
	</div>
	
<include file="Public:footer"/>